<div class="dish">

    <form class="bootstrap-frm" enctype="multipart/form-data">
        <table>
            <tr>
                <td><label>用户名</label></td>
                <td>{{m.account}}</td>
            </tr>
            <tr>
                <td><label>店名</label></td>
                <td><input type="text" ng-model="m.shopName"></td>
            </tr>
            <tr>
                <td><label>图标</label></td>
                <td>
                    <button class="merchantImgUploadBtn" type="file" ngf-select="uploadFiles($file, $invalidFiles)" accept="image/*" ngf-max-height="1000" ngf-max-size="10MB">{{img}}</button>
                </td>
            </tr>
            <tr>
                <td><label>地址</label></td>
                <td><input type="text" ng-model="m.address"></td>
            </tr>
            </tr>
            <tr>
                <td><label>评分</label></td>
                <td>{{m.star}}</td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" ng-click="alert()"
                                       value="更改信息" class="button" class="btn btn-default btn-lg" data-toggle="modal" data-target="#myModal" style="color: #388a5a"></td>
            </tr>
        </table>
    </form>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabel" style="text-align: left" >
                    修改结果
                </h4>
            </div>
            <div class="modal-body" align="center"><h2>{{result}}</h2></div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div>
    </div>
</div><
<script>
    $(function () {
        $('#myModal').modal('hide')});
</script>